from rest_framework import response


def Response(*args, **kwargs):
    re = response.Response(*args, **kwargs)
    re['Access-Control-Allow-Origin'] = '*'
    re["Access-Control-Allow-Methods"] = "POST, GET, OPTIONS,DELETE,PUT"
    re["Access-Control-Allow-Credentials"] = "true"
    re['Content-Type'] = 'application/json'
    return re
